# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=elementary-photos
pkgver=2.8.0
pkgrel=1
pkgdesc="Photo viewer and organizer designed for elementary OS"
url="https://github.com/elementary/photos"
arch="all !riscv64 !s390x"  # blocked by libhandy1
license="LGPL-2.1"
depends="hicolor-icon-theme"
makedepends="
	geocode-glib-dev
	gexiv2-dev
	gexiv2-dev
	glib-dev
	granite-dev
	gst-plugins-base-dev
	gstreamer-dev
	gtk+3.0-dev
	json-glib-dev
	libexif-dev
	libgee-dev
	libgphoto2-dev
	libgudev-dev
	libhandy1-dev
	libraw-dev
	libsoup-dev
	libwebp-dev
	libxml2-dev
	meson
	rest-dev
	sqlite-dev
	vala
	webkit2gtk-dev
	"
subpackages="
	$pkgname-lang
	$pkgname-publishing
	"
source="https://github.com/elementary/photos/archive/$pkgver/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/photos-$pkgver"
options="!check"  # no tests provided

build() {
	abuild-meson . output
	meson compile -j ${JOBS:-0} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

publishing() {
	pkgdesc="$pkgdesc - publishing plugins"

	amove usr/lib/io.elementary.photos/plugins/libpantheon-photos-publishing*.so
}

sha512sums="
691212a03d19b51bed7cb11d7df32e276d8aa7c5810668a6a3898c1e22c0664672dec66055305cd0e82d52cf612e094fa8ccbe32f62cb73d579f17cfc6915758  elementary-photos-2.8.0.tar.gz
"
